#!/usr/bin/env python
#   encoding=UTF-8
"""
@author     wangli
@date       2014-1-2
"""

import json

class DiverHandler:
    def __init__(self):
        pass
    def __call__(self, env, start_response):
        ret = {'msg' : 'diver'} 
        ret = json.dumps(ret)
        resp_header = [
            ("Content-Type","text/plain;charset=utf-8"),
            ("Content-Length",str(len(ret)))
        ]
        status = '200 OK'
        start_response(status, resp_header)
        return [ret]

application = DiverHandler()

